﻿@model List<FC.Data.ViewModels.Contests.ProblemCollection>

@{
    ViewBag.Title = "习题集";
    Layout = "~/Views/Shared/_ContestsLayout.cshtml";
}

<h2>习题集</h2>

<table class="table table-bordered table-hover">
    <tr>
        <th>
            名称
        </th>
        <th style="width: 100px;">
            状态
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            <a href="~/Contests/List/@item.Code">
                @Html.DisplayFor(modelItem => item.Name)
            </a>
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.State)
        </td>
    </tr>
}
</table>
